package edu.smxy.associationmanagement.services.wfentity.impl;

import edu.smxy.associationmanagement.domain.WFEntity;
import edu.smxy.associationmanagement.mapper.WFEntityMapper;
import edu.smxy.associationmanagement.services.wfentity.WFEntityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* WFEntity 服务层接口实现类
* @date  2019/04/20
* @author: : SDH
* @description: 流程管理 服务层接口实现类
*/
@Service("WFEntityService")
public class WFEntityServiceImpl implements WFEntityService {
	@Autowired
	WFEntityMapper wfEntityMapper;

	@Override
	public int deleteByPrimaryKey(Integer id) {
		return wfEntityMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(WFEntity record) {
		return wfEntityMapper.insert(record);
	}

	@Override
	public int insertSelective(WFEntity record) {
		return wfEntityMapper.insertSelective(record);
	}

	@Override
	public WFEntity selectByPrimaryKey(Integer id) {
		return wfEntityMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(WFEntity record) {
		return wfEntityMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(WFEntity record) {
		return wfEntityMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<WFEntity> getRunningApply(int typeid, int authorid) {
		return wfEntityMapper.getRunningApply(typeid, authorid);
	}

	@Override
	public List<WFEntity> getRunningApplyAdmin(int typeid, int status) {
		return wfEntityMapper.getRunningApplyAdmin(typeid, status);
	}
}
